/**
 * Created by Administrator on 2017/1/16 0016.
 */
let conn;
const socket={
  send:function(value){
    conn.send(value);
  },
  init:function(lis,sId){
    if (window["WebSocket"]) {
      conn = new WebSocket("ws://112.74.164.191:9138/ws");
      conn.onclose = function (evt) {
        console.log('Connection closed');
      };
    }
  }
};
export default socket
